from django.db import models

from modelfields.bit_choice_field import BitChoiceField

choices = [
    (1, 'xxx'),
    (2, 'yyy'),
    (4, 'zzz'),
    (8, 'jjj'),
]

class DemoConfig(models.Model):
    """
    测试配置
    """

    name = models.CharField(
        '测试配置名称',
        max_length=100,
        default='',
    )
    bbb = BitChoiceField(
        '测试类型',
        choices=choices,
        default=0,
    )